<?php

/**
 * Reservations presenter.
 */
class ReservationsPresenter extends BasePresenter
{

	public function renderDefault()
	{
		$reservations = $this->context->reservations->getAll();

		$this->template->reservations = $reservations;
	}

	/**
	 * Add Form control
	 * @return [type] [description]
	 */
	protected function createComponentAddForm()
	{
		return new Reservations\ReservationsForm();
	}
}